package com.cp2;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;

@Service("teacherService")
public class TeacherServiceImpl implements TeacherService {
	@Resource(name="teacherDao")
	private TeacherDao teacherDao;
	@Override
	public void talk() {
		this.teacherDao.say();
		System.out.println("teacherService talk...");
	}
}
